package pers.ijfxu.testngext.context;


/**
 * 文本传参推荐使用该类型入参
 * 
 * @author ijfxu
 * @since 2022/4/16
 */
public class RecArgFormat {
    public int no = 0;

    public String desc = "";

    public String tFunc = "";

    public String args = null;

    public String exp = "";

    public String errMsg = "";

    public String result = "";

    public int priority = 1;

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String gettFunc() {
        return tFunc;
    }

    public void settFunc(String tFunc) {
        this.tFunc = tFunc;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String geterrMsg() {
        return this.errMsg;
    }

    public void seterrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    @Override
    public String toString() {
        return String.format(
                "{\"no\":%d,\"desc\":\"%s\",\"tFunc\":\"%s\",\"args\":\"%s\",\"exp\":\"%s\",\"errMsg\":\"%s\",\"result\":\"%s\",\"priority\":%d }",
                this.no,
                this.desc,
                this.tFunc,
                this.args,
                this.exp,
                this.errMsg,
                this.result,
                this.priority);
    }
}
